package com.ruoyi.supermarket.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supermarket.mapper.XqyfpayMapper;
import com.ruoyi.supermarket.domain.Xqyfpay;
import com.ruoyi.supermarket.service.IXqyfpayService;

/**
 * 应付详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-30
 */
@Service
public class XqyfpayServiceImpl implements IXqyfpayService 
{
    @Autowired
    private XqyfpayMapper xqyfpayMapper;

    /**
     * 查询应付详情
     * 
     * @param xqyfpayId 应付详情主键
     * @return 应付详情
     */
    @Override
    public Xqyfpay selectXqyfpayByXqyfpayId(Long xqyfpayId)
    {
        return xqyfpayMapper.selectXqyfpayByXqyfpayId(xqyfpayId);
    }

    /**
     * 查询应付详情列表
     * 
     * @param xqyfpay 应付详情
     * @return 应付详情
     */
    @Override
    public List<Xqyfpay> selectXqyfpayList(Xqyfpay xqyfpay)
    {
        return xqyfpayMapper.selectXqyfpayList(xqyfpay);
    }

    /**
     * 新增应付详情
     * 
     * @param xqyfpay 应付详情
     * @return 结果
     */
    @Override
    public int insertXqyfpay(Xqyfpay xqyfpay)
    {
        return xqyfpayMapper.insertXqyfpay(xqyfpay);
    }

    /**
     * 修改应付详情
     * 
     * @param xqyfpay 应付详情
     * @return 结果
     */
    @Override
    public int updateXqyfpay(Xqyfpay xqyfpay)
    {
        return xqyfpayMapper.updateXqyfpay(xqyfpay);
    }

    /**
     * 批量删除应付详情
     * 
     * @param xqyfpayIds 需要删除的应付详情主键
     * @return 结果
     */
    @Override
    public int deleteXqyfpayByXqyfpayIds(Long[] xqyfpayIds)
    {
        return xqyfpayMapper.deleteXqyfpayByXqyfpayIds(xqyfpayIds);
    }

    /**
     * 删除应付详情信息
     * 
     * @param xqyfpayId 应付详情主键
     * @return 结果
     */
    @Override
    public int deleteXqyfpayByXqyfpayId(Long xqyfpayId)
    {
        return xqyfpayMapper.deleteXqyfpayByXqyfpayId(xqyfpayId);
    }
}
